﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JiHuaCX.aspx.cs" Inherits="Web.Pages.QuShui.DiXiaS.ChaXunGL.JiHuaCX" Theme="Default" %>

<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../JS/jquery.js" type="text/javascript"></script>
    <script src="../../../../JS/AddEditCancel.js" type="text/javascript"></script>
    <link href="../../../../css/inputBgColor.css" rel="stylesheet" />
    <style type="text/css">
        body, html {
            padding: 0;
            margin: 0;
            font-size:12px;
        }

        #img table tr td div {
            cursor: pointer;
        }


    </style>
    <script type="text/javascript">
        $(function () {
            var height = Math.max(0, document.documentElement.clientHeight) - 90;
            // $("#condition").css("height", height);
        });


    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            计划查询
        </div>
        <%--<div style="display: none;">
            <dx:ASPxHiddenField ID="hdCollection" ClientInstanceName="hdCollection" runat="server"></dx:ASPxHiddenField>
            <dx:ASPxCallback ID="ASPxCallback1" ClientInstanceName="ASPxCallback1" runat="server" OnCallback="ASPxCallback1_Callback" ClientSideEvents-CallbackComplete="function(s,e){ASPxCallback1Complete(e.result);}"></dx:ASPxCallback>
        </div>--%>
        <asp:UpdatePanel ID="updatePanel1" runat="server">
            <ContentTemplate>
                <div>
                    <div style="border: 1px solid #d0e4fe">
                        <table>
                            <tr>
                                <td style="width: 7%;"><span style="font-size: 12px;">水量年：</span></td>
                                <td>
                                    <dx:ASPxComboBox runat="server" ID="cmbYear" Width="100%">
                                    </dx:ASPxComboBox>
                                </td>

                                <td>&nbsp;</td>
                                <td style="width:7%;"><span style="font-size: 12px;">环内环外：</span></td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel1">
                                        <dx:ASPxComboBox runat="server" ID="cmbHuanNeiHW" Width="60%" AutoPostBack="false">
                                            <Items>
                                                <dx:ListEditItem Text="" Value="0" />
                                                <dx:ListEditItem Text="外环线内" Value="1" />
                                                <dx:ListEditItem Text="外环线外" Value="2" />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width:6%;"><span style="font-size: 12px;">行政区：</span></td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel2">
                                        <dx:ASPxComboBox runat="server" ID="cmbXingZhengQ" Width="60%">
                                            <Items>
                                                <dx:ListEditItem Text="全部" Value="0" Selected="true"  />
                                            </Items>
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                                <td style="width:6%;"><span style="font-size: 12px;">业务员：</span></td>
                                <td>
                                    <asp:Panel runat="server" ID="Panel3">
                                        <dx:ASPxComboBox runat="server" ID="cmbYeWuY" Width="60%">
                                            
                                        </dx:ASPxComboBox>
                                    </asp:Panel>
                                </td>
                               <td>&nbsp;&nbsp;</td>
                                <td>
                                    <dx:ASPxLoadingPanel runat="server" ID="LoadPanel11" ClientInstanceName="LoadPanel" Text="正在查询"></dx:ASPxLoadingPanel>
                                    <dx:ASPxButton runat="server" ID="btnChaXun" Text="查询" OnClick="btnChaXun_Click">
                                        <ClientSideEvents Click="function(s,e){LoadPanel.Show();}"/>
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btnExport2" runat="server" Text="导出EXCEL" UseSubmitBehavior="false">
                                        <ClientSideEvents Click="function(s,e){btnExport.OnClick();}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div>
                        <fieldset style="border: 1px solid #d0e4fe">
                            <legend>查询条件</legend>
                            <div>
                                <div style="float: left; border: 1px solid #d0e4fe; width: 15%;" id="condition">
                                    <table style="height: 270px; width: 100%;">
                                        <tr>
                                            <td>
                                                <dx:ASPxRadioButton runat="server" ID="rabJiHuaLX" Text="计划类型" GroupName="1" ClientInstanceName="rabJiHuaLX"></dx:ASPxRadioButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxComboBox ID="cbmJiHuaLX" ClientInstanceName="cbmJiHuaLX" runat="server" Width="100%">
                                                    <Items>
                                                        <dx:ListEditItem Text="" Value="0" />
                                                        <dx:ListEditItem Text="考核计划" Value="1" />
                                                        <dx:ListEditItem Text="下达计划" Value="2" />
                                                        <dx:ListEditItem Text="拟定计划" Value="3" />
                                                    </Items>
                                                    <ClientSideEvents GotFocus="function(s,e){rabJiHuaLX.SetChecked(true);}" />
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxRadioButton runat="server" ID="chkYongHuH" Checked="false" Text="用户号" ClientInstanceName="chkYongHuH" GroupName="1"></dx:ASPxRadioButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYongHuH" Width="80%">
                                                    <ClientSideEvents GotFocus="function(s,e){chkYongHuH.SetChecked(true);}" />
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <dx:ASPxRadioButton runat="server" ID="chkYongHuM" Text="用户名" GroupName="1" ClientInstanceName="chkYongHuM"></dx:ASPxRadioButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYongHuM" Width="100%">
                                                    <ClientSideEvents GotFocus="function(s,e){chkYongHuM.SetChecked(true);}" />
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxRadioButton runat="server" ID="chkYongHuDZ" Text="用户地址" GroupName="1" ClientInstanceName="chkYongHuDZ"></dx:ASPxRadioButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxTextBox runat="server" ID="txtYongHuDZ" Width="100%">
                                                    <ClientSideEvents GotFocus="function(s,e){chkYongHuDZ.SetChecked(true);}" />
                                                </dx:ASPxTextBox>
                                            </td>
                                        </tr>

                                        <tr>
                                            <td>
                                                <dx:ASPxRadioButton runat="server" ID="rabGuanLiBM" Text="主管部门" GroupName="1" ClientInstanceName="rabGuanLiBM"></dx:ASPxRadioButton>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dx:ASPxComboBox ID="cbmGuanLiBM" ClientInstanceName="cbmGuanLiBM" runat="server" Width="100%">
                                                    <ClientSideEvents GotFocus="function(s,e){rabGuanLiBM.SetChecked(true);}" />
                                                </dx:ASPxComboBox>
                                            </td>
                                        </tr>

                                    </table>
                                </div>
                            </div>
                            <div style="float: right; border: 1px solid #d0e4fe; width: 84%;">
                                <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" Width="98%" AutoPostBack="false">
                                    <TabPages>
                                        <dx:TabPage Text="开采计划">
                                            <ContentCollection>
                                                <dx:ContentControl>
                                                    <div>
                                                        <dx:ASPxGridView ID="gvGridTab1" ClientInstanceName="gvGridTab1" runat="server" AutoGenerateColumns="False" KeyFieldName="ID"
                                                            ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true" SettingsBehavior-AllowSort="true">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="20%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I_KAICAIJH" Caption="开采计划量" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_YEWUY" Caption="业务员" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENBH" Caption="部门号" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENMC" Caption="部门名" Width="20%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_XINGZHENGQM" Caption="行政区名" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="D_RIQI" Caption="下达日期" Width="10%" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto"  VerticalScrollableHeight="500"/>
                                                            <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                            <Settings ShowFooter="True" />
                                                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                            <%--<ClientSideEvents Init="function(s,e){AdjustSize(300,gvGridTab1);}" />--%>
                                                        </dx:ASPxGridView>
                                                    </div>
                                                    <br />
                                                    <hr />
                                                    <div>
                                                        <table style="text-align: right; width: 100%;">
                                                            <tr>
                                                                <td style="width: 100px;"><span style="font-size: 12px;">开采计划总量：</span></td>
                                                                <td style="width: 120px;">
                                                                    <dx:ASPxTextBox runat="server" ID="txtZongLiangTab1" Width="80%" ClientInstanceName="txtZongLiangTab1"></dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxLabel ID="zjlTab1" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </dx:ContentControl>
                                            </ContentCollection>
                                        </dx:TabPage>
                                        <dx:TabPage Text="采灌计划">
                                            <ContentCollection>
                                                <dx:ContentControl>
                                                     <div>
                                                        <dx:ASPxGridView ID="gvGridTab2" ClientInstanceName="gvGridTab2" runat="server" AutoGenerateColumns="False" KeyFieldName="ID"
                                                            ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true" SettingsBehavior-AllowSort="true">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="20%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I_KAICAIJH" Caption="开采计划量" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I_HUIGUANJH" Caption="回灌计划量" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_YEWUY" Caption="业务员" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENBH" Caption="部门号" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENMC" Caption="部门名" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_XINGZHENGQM" Caption="行政区名" Width="10%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="D_RIQI" Caption="下达日期" Width="10%" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="500"/>
                                                            <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                            <Settings ShowFooter="True" />
                                                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                            <%--<ClientSideEvents Init="function(s,e){AdjustSize(300,gvGridTab2);}" />--%>
                                                        </dx:ASPxGridView>
                                                    </div>
                                                    <br />
                                                    <hr />
                                                    <div>
                                                        <table style="text-align: right; width: 100%;">
                                                            <tr>
                                                                <td style="width: 100px;"><span style="font-size: 12px;">开采计划总量：</span></td>
                                                                <td style="width: 120px;">
                                                                    <dx:ASPxTextBox runat="server" ID="txtZongLiangTab2" Width="80%" ClientInstanceName="txtZongLiangTab2"></dx:ASPxTextBox>
                                                                </td>
                                                                  <td style="width: 100px;"><span style="font-size: 12px;">回灌计划总量：</span></td>
                                                                <td style="width: 120px;">
                                                                    <dx:ASPxTextBox runat="server" ID="txtZongLiang2Tab2" Width="80%" ClientInstanceName="txtZongLiang2Tab2"></dx:ASPxTextBox>
                                                                </td> 
                                                                <td>
                                                                    <dx:ASPxLabel ID="zjlTab2" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </dx:ContentControl>
                                            </ContentCollection>
                                        </dx:TabPage>
                                        <dx:TabPage Text="专灌计划">
                                            <ContentCollection>
                                                <dx:ContentControl>
                                                     <div>
                                                        <dx:ASPxGridView ID="gvGridTab3" ClientInstanceName="gvGridTab3" runat="server" AutoGenerateColumns="False" KeyFieldName="S_BUMENBH"
                                                            ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true" SettingsBehavior-AllowSort="true">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENBH" Caption="部门号" Width="15%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_BUMENMC" Caption="部门名" Width="40%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I_ZHUANGUANJH" Caption="专灌计划" Width="15%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_YEWUY_GUID" Caption="业务员" Width="15%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="D_RIQI" Caption="下达日期" Width="15%" PropertiesTextEdit-DisplayFormatString="yyyy-MM-dd">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="500"/>
                                                            <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                            <Settings ShowFooter="True" />
                                                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                            <%--<ClientSideEvents Init="function(s,e){AdjustSize(300,gvGridTab3);}" />--%>
                                                        </dx:ASPxGridView>
                                                    </div>
                                                    <br />
                                                    <hr />
                                                    <div>
                                                        <table style="text-align: right; width: 100%;">
                                                            <tr>
                                                                <td style="width: 100px;"><span style="font-size: 12px;">专灌计划总量：</span></td>
                                                                <td style="width: 120px;">
                                                                    <dx:ASPxTextBox runat="server" ID="txtZongLiangTab3" Width="80%" ClientInstanceName="txtZongLiangTab3"></dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxLabel ID="zjlTab3" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </dx:ContentControl>
                                            </ContentCollection>
                                        </dx:TabPage>
                                        <dx:TabPage Text="加价调整量">
                                            <ContentCollection>
                                                <dx:ContentControl>
                                                     <div>
                                                        <dx:ASPxGridView ID="gvGridTab4" ClientInstanceName="gvGridTab4" runat="server" AutoGenerateColumns="False" KeyFieldName="S_YONGHUH"
                                                            ClientIDMode="AutoID" Settings-ShowVerticalScrollBar="true" Width="100%" EnableCallBacks="true" SettingsBehavior-AllowSort="true">
                                                            <Columns>
                                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUH" Caption="用户号" Width="20%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="S_YONGHUM" Caption="用户名" Width="50%">
                                                                </dx:GridViewDataTextColumn>
                                                                <dx:GridViewDataTextColumn FieldName="I_TZL" Caption="加价调整量" Width="30%">
                                                                </dx:GridViewDataTextColumn>
                                                            </Columns>
                                                            <Settings VerticalScrollBarMode="Visible" HorizontalScrollBarMode="Auto" VerticalScrollableHeight="500"/>
                                                            <SettingsPager Mode="EndlessPaging" PageSize="100" />
                                                            <Settings ShowFooter="True" />
                                                            <SettingsBehavior AllowFocusedRow="True"  ColumnResizeMode="Control" />
                                                            <SettingsBehavior ProcessFocusedRowChangedOnServer="false" />
                                                            <%--<ClientSideEvents Init="function(s,e){AdjustSize(300,gvGridTab4);}" />--%>
                                                        </dx:ASPxGridView>
                                                    </div>
                                                    <br />
                                                    <hr />
                                                    <div>
                                                        <table style="text-align: right; width: 100%;">
                                                            <tr>
                                                                <td style="width: 100px;"><span style="font-size: 12px;">加价调整总量：</span></td>
                                                                <td style="width: 120px;">
                                                                    <dx:ASPxTextBox runat="server" ID="txtZongLiangTab4" Width="80%" ClientInstanceName="txtZongLiangTab4"></dx:ASPxTextBox>
                                                                </td>
                                                                <td>
                                                                    <dx:ASPxLabel ID="zjlTab4" Text="共0条" runat="server" ForeColor="Blue"></dx:ASPxLabel>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </dx:ContentControl>
                                            </ContentCollection>
                                        </dx:TabPage>
                                    </TabPages>
                                </dx:ASPxPageControl>

                            </div>
                        </fieldset>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>

        <div style="display: none;">
            <dx:ASPxGridViewExporter ID="ASPxGridViewExporter1" runat="server"></dx:ASPxGridViewExporter>
            <dx:ASPxButton ID="btnExport" runat="server" ClientInstanceName="btnExport" Text="导出EXCEL" OnClick="btnExport_Click" UseSubmitBehavior="false">
            </dx:ASPxButton>
        </div>
    </form>
</body>
</html>
